package server;



public class Processus {
    
    protected int     num;
    protected String  nom;
    protected int     index;
    protected boolean closed;

    /**
     * Appelée par SVGWriter
     */
    public Processus(int num, String nom, int index) {
        this.num = num;
        this.nom = nom;
        this.index = index;
        this.closed = false;
    }

    /*
     * Constructeur appelé par Server
     */
    public Processus(int num, String nom) {
        this.num = num;
        this.nom = nom;
        this.closed = false;
    }
    
    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    public String getNom() {
        return nom;
    }

    public void setNom(String nom) {
        this.nom = nom;
    }

    public int getIndex() {
        return index;
    }

    public void setIndex(int index) {
        this.index = index;
    }
    
    public boolean isClosed() {
        return closed;
    }

    public void setClosed(boolean closed) {
        this.closed = closed;
    }
    
    
}
